//
//  PostHttpClient.m
//  iphone-commons
//
//  Created by DizainStudio on 16.01.11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "PostHttpClient.h"


@implementation PostHttpClient

-(NSString*) getHttpMethod {
	return @"POST";
}

-(NSString*) getUrlWithParams {
	return self.url;
}

-(NSData*) getHttpBody {
	NSString* paramsString = [self createParams];
	NSData* requestData = [NSData dataWithBytes:[paramsString UTF8String] 
										 length:[paramsString lengthOfBytesUsingEncoding:NSUTF8StringEncoding]] ; 

	return requestData;
}

@end
